package com.xinyue.game.service.framwork.common;

import com.xinyue.game.common.IServerError;

public enum GameFrameworkError implements IServerError {
    REQUEST_NOT_EXIST(404, "当前请求不存在"),
    REQUEST_URI_REPEAT(100, "定义的requestUri重复");
    private int errorCode;
    private String errorMsg;

    GameFrameworkError(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public int getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }
}
